package com.hao.user.app.login;

import com.hao.common.code.ErrorCode;
import com.hao.common.execption.BusinessException;
import com.hao.user.app.mapper.UserMapper;
import com.hao.user.app.model.dto.user.UserLoginRequest;
import com.hao.user.app.model.entity.User;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/5/21 21:28
 */

public interface LoginStrategy {
    default User login(UserLoginRequest userLoginRequest, RedisTemplate<String, Object> redisTemplate, UserMapper userMapper) {
        throw new BusinessException(ErrorCode.SYSTEM_ERROR, "没有实现该类");
    }
}
